package com.azt.provider.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.azt.api.pojo.IntegralRecord;
import com.azt.api.pojo.User;

import tk.mybatis.mapper.common.Mapper;

public interface IntegralRecordMapper extends Mapper<IntegralRecord> {
	public List<IntegralRecord> selectMainRecord(Map<String, String> params);

	public List<IntegralRecord> getIntegralRecordByUserId(@Param("userId")Integer userId,@Param("operateType")Integer operateType, @Param("overdue")Integer overdue, @Param("recordTime")String recordTime);

	public void setOverdueToIntegralRecord(@Param("userId")Integer userId,@Param("operateType")Integer operateType, @Param("overdue")Integer overdue, @Param("recordTime")String recordTime);

	public Integer getOverIntegralRecordByUserId(@Param("userId")Integer userId,@Param("operateType")Integer operateType,  @Param("lastYear")Integer lastYear);

	public Integer getSinceIntegralRecordByUserId(@Param("userId")Integer userId,@Param("operateType")Integer operateType, @Param("overdue")Integer overdue, @Param("recordTime")String recordTime);

	public Integer selectSignRecord(@Param("userId")Integer userId,@Param("code")String code);

}